import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import ProjectDistributionPieChart2 from "./index";

const meta = {
  title: "饼图/可信项目分布-ProjectDistributionPieChart2",
  component: ProjectDistributionPieChart2,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "213px", width: "445px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof ProjectDistributionPieChart2>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "福建省",
        amount: 10,
      },
      {
        name: "广东省",
        amount: 4,
      },
      {
        name: "浙江省",
        amount: 3,
      },
      {
        name: "广西省",
        amount: 2,
      },
    ],
    img: "http://localhost:8800/cockpit/largescreen/leftTop.png",
  },
};
